VMX: relax incoming BNDCFGS check
authorJan Beulich <jbeulich@suse.com>
Fri, 3 Jun 2016 13:28:10 +0000 (15:28 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 3 Jun 2016 13:28:10 +0000 (15:28 +0200)
commit268ead59ce10967cf7490353d743ebc1bb7a9a4c
tree7abf27bfd3e09acf40c5d9f6a9d3157f5d3e6fd1
parent9ab1bd9ab64799816c8223a5f210b7a767ab4ccc
VMX: relax incoming BNDCFGS check

Accepting zero here even when !cpu_has_mpx makes the restore side
symmetric to the save logic (which avoids saving the value if zero),
i.e. makes either side independent of the logic on the other side.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/vmx/vmx.c